﻿//-----------------------------------------------------------------------
// <copyright file="IEntity.cs" company="SLWY Enterprises">
// * Copyright (C) 2017 四川商旅无忧科技有限公司 版权所有。
// * version : 1.0
// * author  : qinchaoyue
// * FileName: IEntity.cs
// * history : created by qinchaoyue 2017-10-19 03:05:13
// </copyright>
//-----------------------------------------------------------------------

using SqlSugar;

namespace Slwy.Data.Entity.Interfaces
{
    /// <summary>
    /// 数据模型接口
    /// </summary>
    /// <typeparam name="TKey">主键类型</typeparam>
    public interface IEntityBase<TKey> : IRecyclable
    {
        /// <summary>
        /// 获取或设置 实体唯一标识，主键
        /// </summary>
        [SugarColumn(IsPrimaryKey = true)]
        TKey KeyID { get; set; }
    }
}